import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// 1.引入path模块
import path from "path";
// 注意：如果报错说找不到path模块，就安装一下相关依赖包
// npm i --save-dev @types/node

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  resolve:{
    // 2.配置别名
    alias:{
      '@':path.resolve(__dirname,"src")
    },
    // 3.省略文件名后缀
    extensions:[".js",".vue",".ts",".scss",".json"]
  }
})
